
var t = document.querySelector('.gddw-1');

window.onscroll = function (){
    console.log(document.body.scrollTop > 1000 || document.documentElement.scrollTop > 1000);

    if(document.body.scrollTop > 1000 || document.documentElement.scrollTop > 1000){
        t.style.display='block';
    }else{
        t.style.display='none';
    }
}


t.addEventListener('click',function(){
//	window.scrollTo(0,0);



    window.scrollTo({
        top:0,
        behavior:'smooth'
    })

})

var fl = document.querySelector('#fl');
var yc = document.querySelector('.yc-1');

fl.addEventListener('mouseover',function(){
    yc.style.display='block';
})

yc.addEventListener('mouseleave',function(){
    yc.style.display='none';
})